package ycl.scheduled.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import ycl.scheduled.common.base.entity.BaseEntity;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户日程安排
 * </p>
 *
 * @author ycl
 * @since 2022-01-20 00:04:45
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sys_user_scheduled")
@ApiModel(value = "SysUserScheduled对象", description = "用户日程安排")
public class SysUserScheduled extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户id")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty("地点")
    @TableField("address")
    private String address;

    @ApiModelProperty("纬度")
    @TableField("lat")
    private BigDecimal lat;

    @ApiModelProperty("经度")
    @TableField("lng")
    private BigDecimal lng;

    @ApiModelProperty("事件")
    @TableField("detail")
    private String detail;

    @ApiModelProperty("状态")
    @TableField("status")
    private String status;

    @ApiModelProperty("到期时间")
    @TableField("expire_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime expireTime;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;



}
